package com.liuzhengting.template.service.impl;

import com.liuzhengting.common.model.GeneralResult;
import com.liuzhengting.template.dao.RoundMapper;
import com.liuzhengting.template.service.RoundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoundServiceImpl implements RoundService {
	
	@Autowired
	private RoundMapper roundDao;
	
	@Override
	public GeneralResult findHome() {
		GeneralResult generalResult = new GeneralResult();
		System.out.println(roundDao.queryHome());
		return generalResult.response(roundDao.queryHome());
	}
	
	/**
	 * 首页查询
	 * @param wokey 查询类别
	 * @param keyvalue 查询关键字
	 * @return
	 */
	@Override
	public GeneralResult homequery(String wokey, String keyvalue) {
		GeneralResult generalResult = new GeneralResult();
		return generalResult.response(roundDao.homequery());
	}
}
